package com.common.enums;

public enum ChannelChangeNameEnum {
    OSTMS("ostms", "奥森平台"),
    SSP("meishu666", "美数平台"),
    BAIDU("baidu888", "百度平台"),
    DIANPING("dianping222", "点屏平台"),
    YISHOU("yishou777", "易售平台"),
    MUMEI("mumei444", "钼媒平台");
    public String code;
    public String message;

    ChannelChangeNameEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static ChannelChangeNameEnum getChannelType(String value) {
        for (ChannelChangeNameEnum channelEnum : ChannelChangeNameEnum.values()) {
            if (value.equals(channelEnum.getCode())) {
                return channelEnum;
            }
        }
        return null;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
